//
//  TestTableViewCell.m
//  ModuleA
//
//  Created by 胡林虎 on 2017/8/21.
//  Copyright © 2017年 胡林虎. All rights reserved.
//

#import "TestTableViewCell.h"
#import  <ModuleB/HLShareManager.h>


@implementation TestTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.ImgV.image = [HLShareManager loadCurretBundleResouceType:GFResImageType currentClass:self bundleName:@"Source" resourceName:@"HH"];
    
//    [self FS_ImageNamed:@"HH"];
    
}

-(UIImage *)FS_ImageNamed:(NSString *)imageName{
    
    static dispatch_once_t onceToken;
    static NSBundle *resourceBundle;
    
    dispatch_once(&onceToken, ^{
        
        NSBundle *bundle = [NSBundle bundleForClass:[self class]];
        NSURL *bundleURL = [bundle URLForResource:@"Source" withExtension:@"bundle"];
        resourceBundle = [NSBundle bundleWithURL: bundleURL];
    });
    
    return resourceBundle?[UIImage imageNamed:imageName inBundle:resourceBundle compatibleWithTraitCollection:nil]:[UIImage imageNamed:imageName];
}



@end
